<div class="product">
	<table>
		<tr>
			<td valign="top" width="80%">
			     <?php 
			         $escaper = new Zend\Escaper\Escaper('utf-8');
			     
                     $name = null;
                     $description = null;
			         
                     for ($i = 0; $i < count($this->texts); $i ++) {
                        $type = $this->texts[$i]->getType();
                         
                        if ($type == 'name')
                           $name = $this->texts[$i]->getText();
                        else if ($type == 'description')
                           $description = $this->texts[$i]->getText();
                     }
                     
		             echo sprintf('<div class="name">%s</div>', $escaper->escapeHtml($name));
		             
		             // Product's images carousel
		             echo $this->product_images_carousel(null, array('images' => $this->images));
		             
		             // Product form
		             $this->form->prepare();
		             $this->form->setAttribute('action', $this->url('catalog/basket', array('controller' => 'basket', 'action' => 'add'), true));
		             		             
		             echo $this->form()->openTag($this->form);
		             echo $this->formcollection($this->form, false);
		             echo $this->form()->closeTag();
		             
		             // Product description
		             echo '<div class="product_description">';
		             echo sprintf('<div class="title">%s</div>', $this->translate('product description', 'catalog', $this->locale));
		             echo sprintf('<div class="content">%s</div>', $escaper->escapeHtml($description));
		             echo '</div>';
		             ?>
            </td>
			<td valign="top" width="20%">
                <?php
                    echo $this->callout(null, array(
                        'title' => $this->translate('personalize', 'catalog', $this->locale),
                        'content' => $this->translate('personalize_content', 'catalog', $this->locale),
                        'imageUrl' => $this->basePath() . '/img/callout/personalize.png'
                    ));
                    
                    echo $this->callout(null, array(
                        'title' => $this->translate('collaborate', 'catalog', $this->locale),
                        'content' => $this->translate('collaborate_content', 'catalog', $this->locale),
                        'imageUrl' => $this->basePath() . '/img/callout/collaborate.png'
                    ));
                    
                    echo $this->social_callout(null, null);
                    echo $this->paypal_callout(null, null);
                ?>
            </td>
		</tr>
	</table>
</div>